package com.lujieni.dbsharding.simple.controller;

import com.lujieni.dbsharding.simple.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UseSeataController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/useTransaction")
    public void useTransaction(){
        orderService.useTransaction();
    }

    @GetMapping("/useSeata")
    public void useSeata(){
        orderService.useSeata();
    }


}
